package com.itheima.zhuanhuan;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
/*
字节 ->字符的 桥梁
输入流   转换流
InputStreamReader 是 字节 到 字符的桥梁

 */
public class Demo01 {

    public static void main(String[] args) throws Exception {
        InputStreamReader reader = new InputStreamReader(new FileInputStream("day13\\aaa\\aaa.txt"),"gbk");
        int read ;
        while ((read=reader.read())!=-1){
            System.out.println((char) read);
        }
        reader.close();

    }
}
